package com.weasing.res.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.weasing.res.dao.IWxAnswerDao;
import com.weasing.res.domain.WxAnswer;
import com.weasing.res.service.IWxAnswerService;

@Service
@Transactional
public class WxAnswerServiceImpl implements IWxAnswerService {

	@Autowired
	private IWxAnswerDao wxAnswerDao;

	@Override
	public void addWxAnswer(WxAnswer wxAnswer) {
		wxAnswerDao.save(wxAnswer);

	}

	@Override
	public List<WxAnswer> findWxAnswerByQid(int qid) {
		List<WxAnswer> list = wxAnswerDao.findWxAnswerByQid(qid);
		return list;
	}

}
